package com.bestcem.xm.label.service.impl;

import com.bestcem.xm.common.core.domain.web.ServiceResult;
import com.bestcem.xm.label.enums.HealthStatusEnum;
import com.bestcem.xm.label.service.SystemService;
import com.bestcem.xm.label.service.dto.HealthInfoDTO;
import org.springframework.stereotype.Service;

/**
 * @author ming.xue <ming.xue@idiaoyan.com>
 * @desc 系统服务
 * @date 2021-05-28
 */
@Service("systemService")
public class SystemServiceImpl implements SystemService {
    /**
     * 健康检查
     *
     * @return
     */
    @Override
    public ServiceResult<HealthInfoDTO> getHealthInfo() {
        HealthInfoDTO healthInfoDTO = new HealthInfoDTO();
        healthInfoDTO.setStatus(HealthStatusEnum.UP.getIndex());
        return ServiceResult.success(healthInfoDTO);
    }
}
